package com.example.dto.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Classname PageDto
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/1/27 13:58
 * @Created by wlh12
 */
@Data
@ApiModel(value = "分页查询请求时必要条件条件")
public class PageRequestDto {

    @NotNull(message = "当前页不能为空")
    @ApiModelProperty(value = "当前页")
    private Integer pageCurrent;
    @ApiModelProperty(value = "每页条数")
    @NotNull(message = "每页条数不能为空")
    private Integer pageSize;
}
